package com.jzx.provider.ucenter.consul.dto.command;

import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
@Builder
public class ConsulRegisterCommand implements Serializable {

    private String username;

    @Pattern(regexp = "^1\\d{10}$", message = "手机号码不合法")
    private String mobile;

    /**
     * 密码
     */
    private String password;

    private String code;

}
